Player2 will be controlled by the Up Arrow, Left Arrow, and Right Arrow keys.

  • Use Up Key to have player2 .move_up() 30 pixels when the Up Arrow key is pressed.
  • Use Left Key to have player2 .move_left() 30 pixels when the Left Arrow key is pressed.
  • Use Right Key to have player2 .move_right() 30 pixels when the Right Arrow key is pressed.


To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)